/* 主模态框样式 */
.navigation-modal {
	padding: 0;
	height: calc(100% - 40px);
}

.navigation-modal-title {
	margin: 0;
	font-size: 1.5rem;
	color: var(--text-normal);
}

.navigation-modal-toolbar {
	height: 55px;
	border-bottom: 1px solid #ddd;
	width: calc(100% - var(--size-4-4));
	margin-right: var(--size-4-4);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 10px;
	margin-bottom: 16px;
}

.navigation-modal-toolbar-left {
	width: 200px;
}

.navigation-modal-toolbar-add-button {
	padding: 8px 16px;
	background-color: var(--interactive-accent);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: none;
}

.navigation-modal-toolbar-add-button:hover {
	background-color: var(--interactive-accent-hover);
}

.navigation-modal-toolbar-right {
	width: 320px;
	position: relative;
}

.navigation-modal-toolbar-search-input {
	width: 100%;
	padding: 10px 10px 10px 36px !important;
	border: 1px solid var(--background-modifier-border);
	border-radius: 4px;
	background-color: var(--background-secondary);
	color: var(--text-normal);
}

.navigation-modal-toolbar-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	width: 16px;
	height: 16px;
	display: inline-block;
	border: 2px solid currentColor;
	border-radius: 50%;
	box-sizing: border-box;
}

/* 卡片容器样式 */
.navigation-modal-cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
	height: calc(100% - 70px);
	overflow-y: auto;
	padding-right: var(--size-4-4);
	padding-top: var(--size-4-4);
	padding-bottom: var(--size-4-4);
	grid-auto-rows: min-content;
}

.navigation-modal-cards-container-empty {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-right: var(--size-4-4);
	min-height: 200px;
	height: calc(100% - 130px);
}

.navigation-modal-empty-container {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 0;
	margin-bottom: 8px;
	pointer-events: none;
}

.navigation-modal-empty-img {
	max-width: 120px;
	max-height: 120px;
	margin-bottom: 8px;
}

.navigation-modal-empty-label {
}

/* 导航卡片样式 */
.navigation-modal-navigation-card {
	background-color: #fff;
	border-radius: 6px;
	padding: 16px;
	box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	position: relative;
	z-index: 10;
	border: 1px solid #ddd;
	backdrop-filter: blur(6px);
}

.navigation-modal-navigation-card:hover {
	background-color: var(--background-secondary);
}

.navigation-modal-navigation-card.starred {
	border-color: #ddd;
}

.navigation-modal-navigation-card-label {
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--text-normal);
	word-break: break-all;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.navigation-modal-navigation-card-url {
	height: 20px;
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 8px;
	word-break: break-all;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.navigation-modal-navigation-card-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

/* 卡片按钮样式 */
.navigation-modal-star-button,
.navigation-modal-edit-button,
.navigation-modal-delete-button {
	background: none;
	border: none;
	cursor: pointer;
	border-radius: 4px;
	transition: none;
	width: 24px;
	height: 24px;
	line-height:22px;
	box-shadow: none !important;
	border: 1px solid #ddd;
}

.navigation-modal-star-button {
	color: var(--text-muted);
}

.navigation-modal-star-button.active {
	color: #f5c10b;
}

.navigation-modal-star-button.hover {
	box-shadow: none;
	border: 1px solid #ddd;
}

.navigation-modal-edit-button {
	color: var(--text-muted);
}

.navigation-modal-edit-button:hover {
	background-color: rgba(75, 192, 192, 0.1);
	color: #4464f5;
	box-shadow: none;
	border: 1px solid #ddd;
}

.navigation-modal-delete-button {
	color: var(--text-muted);
}

.navigation-modal-delete-button:hover {
	background-color: rgba(235, 64, 52, 0.1);
	color: #eb4034;
	box-shadow: none;
	border: 1px solid #ddd;
}

/* 编辑覆盖层样式 */
.edit-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.navigation-modal-edit-modal {
	background: var(--background-primary);
	padding: 24px;
	border-radius: 8px;
	width: 600px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navigation-modal-edit-modal h3 {
	margin-top: 0;
	color: var(--text-normal);
}

/* 表单样式 */
.navigation-modal-edit-modal-form-group {
	margin-bottom: 16px;
}

.navigation-modal-edit-modal-star-form-group {
	display: flex;
	align-items: center;
}

.navigation-modal-edit-modal-label{
	display: block;
	margin-bottom: 6px;
	color: var(--text-normal);
	font-size: 0.9rem;
}

.navigation-modal-edit-modal-input{
	width: 100%;
	padding: 8px;
	border: 1px solid var(--background-modifier-border);
	border-radius: 4px;
	background-color: var(--background-secondary);
	color: var(--text-normal);
}

.navigation-modal-edit-modal-start-label {
	display: inline-block;
	margin-right: 8px;
}

.navigation-modal-edit-modal-button-group {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 24px;
}
